﻿<Window x:Class="SLRT.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:usercontrols="clr-namespace:SLRT.usercontrols"
        xmlns:c="clr-namespace:SLRT.commands"
        Title="MainWindow" Height="350" Width="525">

  <Window.Resources>
    <!-- Allows a KeyBinding to be associated with a command defined in the View Model  -->
    <c:CommandReference x:Key="ExitCommandReference" Command="{Binding ExitCommand}" />
    <c:CommandReference x:Key="NewButtonCommandReference" Command="{Binding NewButtonCommand}" />
  </Window.Resources>

  <Window.InputBindings>
    <KeyBinding Key="X" Modifiers="Control" Command="{StaticResource ExitCommandReference}" />
    <KeyBinding Key="N" Modifiers="Control" Command="{StaticResource NewButtonCommandReference}" />
  </Window.InputBindings>

  
    <Grid Name="MainGrid" HorizontalAlignment="Center">

    </Grid>

</Window>
